//
//  ViewController.swift
//  AwesomeULoginModule
//
//  Created by xieqiang on 04/28/2018.
//  Copyright (c) 2018 xieqiang. All rights reserved.
//

import UIKit

import AwesomeUBaseModule
import AwesomeULoginModule

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
    }

    @IBAction func login(_ sender: UIButton) {
        
        if !AUAccountManager.sharedInstance.isLogin {
            let wrapper = AULoginModule_Wrapper()
            present(AULoginModule.sharedLoginModule.loginVC, animated: true, completion: nil)
        } else {
            print("---已经登陆成功, 进入首页---")
        }
        
    }
    
    @IBAction func logout(_ sender: UIButton) {
        AUAccountManager.sharedInstance.removeAccount()
    }
    
}

